.class Lcom/waiqin365/lightapp/chexiao/fd;
.super Lcom/waiqin365/lightapp/product/c/h;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;DDLandroid/widget/EditText;Ljava/lang/String;Ljava/lang/String;)V
    .locals 10

    iput-object p1, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    move-object v1, p0

    move-wide v2, p2

    move-wide v4, p4

    move-object/from16 v6, p6

    move-object/from16 v7, p7

    move-object/from16 v8, p8

    invoke-direct/range {v1 .. v8}, Lcom/waiqin365/lightapp/product/c/h;-><init>(DDLandroid/widget/EditText;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 8

    const-wide/16 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->b(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)D

    move-result-wide v2

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->c(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)D

    move-result-wide v6

    sub-double/2addr v2, v6

    invoke-static {v0, v2, v3}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->b(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;D)D

    move-result-wide v2

    cmpl-double v0, v2, v4

    if-lez v0, :cond_0

    move-wide v0, v2

    :goto_0
    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/chexiao/fd;->a(D)V

    cmpl-double v0, v2, v4

    if-lez v0, :cond_1

    neg-double v0, v2

    :goto_1
    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/chexiao/fd;->b(D)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    const v1, 0x7f080758

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/fd;->a(Ljava/lang/String;)V

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    const v6, 0x7f080756

    invoke-virtual {v1, v6}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    cmpl-double v0, v2, v4

    if-lez v0, :cond_2

    const-string/jumbo v0, "-"

    :goto_2
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/fd;->b(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/lightapp/product/e/b;->f()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/fd;->a(I)V

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/product/c/h;->afterTextChanged(Landroid/text/Editable;)V

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->e(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Lcom/waiqin365/lightapp/view/EditTextHasClear;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/EditTextHasClear;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    const-wide/16 v2, 0x0

    invoke-static {v1, v2, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;D)D

    move-result-wide v2

    invoke-static {v0, v2, v3}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->c(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;D)D

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->g(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Lcom/waiqin365/lightapp/view/LabelViewH;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u00a5"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    iget-object v4, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->b(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)D

    move-result-wide v4

    iget-object v6, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    invoke-static {v6}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->c(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)D

    move-result-wide v6

    sub-double/2addr v4, v6

    iget-object v6, p0, Lcom/waiqin365/lightapp/chexiao/fd;->a:Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    invoke-static {v6}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->f(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)D

    move-result-wide v6

    sub-double/2addr v4, v6

    invoke-static {v3, v4, v5}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->b(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;D)D

    move-result-wide v4

    invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {}, Lcom/waiqin365/lightapp/product/e/b;->f()I

    move-result v3

    const/4 v4, 0x1

    invoke-static {v2, v3, v4}, Lcom/waiqin365/lightapp/product/e/b;->b(Ljava/lang/String;IZ)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/LabelViewH;->setContent(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_3
    return-void

    :cond_0
    move-wide v0, v4

    goto/16 :goto_0

    :cond_1
    move-wide v0, v2

    goto/16 :goto_1

    :cond_2
    const-string/jumbo v0, ""

    goto/16 :goto_2

    :catch_0
    move-exception v0

    goto :goto_3
.end method
